package com.nkzy.service;

import com.nkzy.pojo.Address;
import com.nkzy.pojo.User;

import java.util.List;

public interface UserService {

    int insertUser(User user);

    int deleteUserById(Long id);

    int updateUser(User user);

    User selectUserById(Long id);

    List<User> selectAllUsers();

    List<User> selectUsersByIds(List<Long> ids);

    void deleteAddressById(long l);

    void insertAddress(Address address);

    boolean selectAllAddress();

    Address selectAddressById(long l);
}